package cn.shit;

import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.nio.charset.StandardCharsets;

public class TryWithResource {
    public static void read() {

        try (InputStream in =
                     new FileInputStream(
                             "D:\\IDEA\\Code016\\src\\cn\\fuck\\ff.txt")) {

            byte[] bytes = new byte[100900];
            in.read(bytes);
            String s = new String(bytes, StandardCharsets.UTF_8);
            System.out.println(s);

        } catch (IOException e) {
            System.out.println(e.getMessage());
        } finally {
            System.out.println("233");
        }
    }

    public static void main(String[] args) {
        read();
    }
}
